"""
    ZeroDivisionError:除零异常
    index out of range：角标越界





"""

if __name__ == '__main__':
    a = 100
    b = 0
    d = ['adf','ete','qew']
    try:
        # c = a/b
        # print(c)
        print(d[5])


    except Exception as b:
        print('获取异常',b)
    else:
        print('计算正确')
    finally:
        print('不管你有无异常都要说')